package mission009;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Admin
 * @create 2019/10/18
 * @since 1.0.0
 */
public class Animal implements IPet{
    private String name;
    private List<String>sounds=new ArrayList();
    private List<Food> foods=new ArrayList();

    public Animal(String name) {
        super();
        this.name=name;

    }

    public Animal() {
        super();
    }

    public void cry() {

    }

    public void eat(){
//        for (Object sound:getFoods()) {
//            System.out.println(this.getName() + "饿了要吃" + getFoods());
//        }
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setFoods(List<Food>foods) {
        this.foods = foods;
    }

    public String getName() {
        return name;
    }

    public List getSounds() {
      return sounds;
    }

    public void setSounds(List sounds){
        this.sounds= this.sounds;
    }

    public List<Food> getFoods() {
        return foods;
    }

}
